Look for NEWS in order to find /etc, rather than GNU.
authorRob Browning <rlb@defaultvalue.org>
Thu, 24 Jul 2008 03:42:02 +0000 (20:42 -0700)
committerRob Browning <rlb@defaultvalue.org>
Thu, 24 Jul 2008 03:42:02 +0000 (20:42 -0700)
debian/changelog
debian/patches/look-for-news-to-find-etc.diff [new file with mode: 0644]
debian/patches/series

index f5965479d8941fca24ba69a7b590dd888a172687..c597f54a03ca25d9511511c5ed6b8a59a0553d6f 100644 (file)
@@ -1,4 +1,4 @@
-emacs22 (22.2+2-3) unstable; urgency=low
+emacs22 (22.2+2-3) unstable; urgency=medium
 
   * Fix an insecurity related to fast-lock-cache-directories
     (CVE-2008-2142).  Thanks to   Provided-by: Sven Joachim <svenjoac@gmx.de>
@@ -13,7 +13,11 @@ emacs22 (22.2+2-3) unstable; urgency=low
     function.  Thanks to Jun Inoue <jun.lambda@gmail.com>.
     (closes: #488427)
 
- -- Rob Browning <rlb@defaultvalue.org>  Wed, 23 Jul 2008 19:58:11 -0700
+  * Don't look for GNU to find etc/.  Look for NEWS instead.  Thanks to
+    "Bernhard Michler" <Boregard@gmx.net> for the report and Sven Joachim
+    <svenjoac@gmx.de> for the fix. (closes: #478240)
+
+ -- Rob Browning <rlb@defaultvalue.org>  Wed, 23 Jul 2008 20:32:25 -0700
 
 emacs22 (22.2+2-2) unstable; urgency=medium
 
diff --git a/debian/patches/look-for-news-to-find-etc.diff b/debian/patches/look-for-news-to-find-etc.diff
new file mode 100644 (file)
index 0000000..0de8cef
--- /dev/null
@@ -0,0 +1,33 @@
+* Emacs will now look for NEWS in order to find etc/ rather than GNU.
+  Patch: look-for-news-to-find-etc.diff
+  Provided-by: Sven Joachim <svenjoac@gmx.de>
+  Originally-reported-by: Bernhard Michler <Boregard@gmx.net>
+  Date: Mon, 28 Apr 2008 11:20:23 +0200
+  Added-by: Rob Browning <rlb@defaultvalue.org>
+  Status: Debian specific
+
+  Since Debian doesn't include GNU in the Debian packages (the common
+  licenses are in /usr/share/common-licenses), Emacs will now look for
+  NEWS to find the etc directory instead of GNU.
+
+Index: sid/src/callproc.c
+===================================================================
+--- sid.orig/src/callproc.c
++++ sid/src/callproc.c
+@@ -1587,14 +1587,14 @@
+       srcdir = Fexpand_file_name (build_string ("../src/"),
+                                 build_string (PATH_DUMPLOADSEARCH));
+-      tem = Fexpand_file_name (build_string ("GNU"), Vdata_directory);
++      tem = Fexpand_file_name (build_string ("NEWS"), Vdata_directory);
+       tem1 = Ffile_exists_p (tem);
+       if (!NILP (Fequal (srcdir, Vinvocation_directory)) || NILP (tem1))
+       {
+         Lisp_Object newdir;
+         newdir = Fexpand_file_name (build_string ("../etc/"),
+                                     build_string (PATH_DUMPLOADSEARCH));
+-        tem = Fexpand_file_name (build_string ("GNU"), newdir);
++        tem = Fexpand_file_name (build_string ("NEWS"), newdir);
+         tem1 = Ffile_exists_p (tem);
+         if (!NILP (tem1))
+           Vdata_directory = newdir;
index 1328680dca641d2d61c324f6620b11505c5ba470..5b7c5e77b6a30d15ecf1282acc5f9053c02688fe 100644 (file)
@@ -10,4 +10,5 @@ version-mention-debian.diff
 fix-vcdiff-tmp-file-handling-cve-2008-1694.diff
 make-fast-lock-cache-directories-risky-cve-2008-2142.diff
 fix-mule-select-safe-coding.diff
+look-for-news-to-find-etc.diff
 autofiles.diff